Avoid crashes calling gdk_window_enable_synchronized_configure() on an offscreen...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 13 Jan 2011 08:00:57 +0000 (17:00 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 13 Jan 2011 08:03:14 +0000 (17:03 +0900)
Just added gdk_offscreen_window_do_nothing() noop stub in that slot.

gdk/gdkoffscreenwindow.c

index a4a0d418a95d48062f3971a4ae52271f4ff50577..fa1518f0d7674a8150ca72b627513b3032ca31ff 100644 (file)
@@ -779,7 +779,7 @@ gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
   impl_class->set_functions = NULL;
   impl_class->begin_resize_drag = NULL;
   impl_class->begin_move_drag = NULL;
-  impl_class->enable_synchronized_configure = NULL;
+  impl_class->enable_synchronized_configure = gdk_offscreen_window_do_nothing;
   impl_class->configure_finished = NULL;
   impl_class->set_opacity = NULL;
   impl_class->set_composited = NULL;